<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>站点管理</a></li>
			<li><a href="javascript:parent.openIframeLayer('{:cmf_plugin_url('Web://AdminIndex/edit')}','编辑站点',{area:['50%','80%'],end:function(){location.reload();}});" >添加站点</a>
			</li>
			<li class="pull-right"><a href="javascript:parent.openIframeLayer('{:url('admin/theme/install')}','安装模板',{area:['80%','80%'],end:function(){location.reload();}});" >安装模板</a>
			</li>
		</ul>
		<br>
		<table class="table table-hover table-bordered table-list">
			<thead>
				<tr>
					<th width="80">序号</th>
					<th>站点域名</th>
					<th>电脑端模板</th>
					<th>手机端模板</th>
					<th>备注</th>
					<th width="120">更新时间</th>
					<th width="120">状态</th>
					<th width="120">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="datalist" item="vo">
				<tr>
					<td>{$key+1}</td>
					<td><a href="http://{$vo.web_url}" target="_blank">{$vo.web_url}</a></td>
					<td><span class="label label-default">{$vo.pc_theme}</span></td>
					<td><span class="label label-default">{$vo.mob_theme}</span></td>
					<td>{$vo.msg}</td>
					<td>{:date('Y-m-d',$vo['update_time'])}</td>
					<td><span class="label {$vo.status?'label-success': 'label-warning'}">{$vo.status?'开启': '关闭'}</span></td>
					<td><a href="javascript:parent.openIframeLayer('{:cmf_plugin_url('Web://AdminIndex/edit',['id'=>$vo['id']])}','编辑站点',{area:['50%','80%'],end:function(){location.reload();}});" class="btn btn-primary btn-sm">编辑</a>
					<a href="{:cmf_plugin_url('Web://AdminIndex/delete',['id'=>$vo['id']])};" class="js-ajax-delete btn btn-danger btn-sm">删除</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	
	<script src="__STATIC__/js/admin.js"></script>

</body>
</html>